<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>修改密码</title>
	<script src="<s:url value="/"/>resources/js/user.js"></script>	
</head>
<body>
	 <div class="modal-header" style="text-align:center;">
    	<h3 id="currentUser" class="label label-success" style="font-Size:15px;">当前用户:  ${pwModel.loginName}</h3>
	  </div>
	
	<form:form id="pwUpdateForm" method="post" modelAttribute="pwModel" cssClass="form-horizontal">
		<form:hidden path="userId"/>
		<form:hidden path="password" id="oldPassword"/>
		<form:hidden path="loginName" id="userName"/>
	
		<div class="content" style="margin-left:460px;">
			<div class="row">
				<div class="span5">
					<div class="control-group ">
						<form:label cssClass="control-label" for="selfPassword" path="selfPassword" >原密码</form:label>
						<div class="controls">
							<form:input type="password" id="selfPassword" path="selfPassword" class="input-xlarge focused" maxlength="32" check-type="required" required-message="原密码不能为空!" placeholder="原密码"/>
							<label id="checkInfo" style="font-size:14px;color:red"></label>
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="span5">
					<div class="control-group ">
						<form:label cssClass="control-label" for="newPassword" path="newPassword" >新密码</form:label>
						<div class="controls">
							<form:input type="password" id="newPassword" path="newPassword" class="input-xlarge focused" maxlength="32" check-type="required" required-message="新密码不能为空!"  placeholder="新密码" />
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="span5">
					<div class="control-group ">
						<form:label cssClass="control-label" for="checkPassword" path="checkPassword" style="align:center;" >确认密码</form:label>
						<div class="controls">
							<form:input id="checkPassword" type="password" path="checkPassword" class="input-xlarge focused" maxlength="32"  placeholder="确认密码" check-type="required checkPassword"  required-message="确认密码不能为空!"/>
						</div>
					</div>
				</div>
			</div>
		</div>
		
		<div class="modal-footer">
			<center>
			    <a href="#" class="btn btn-primary" style="font-size:15px;" onclick="if(savePw()==false) return false;">保存</a>
			    <input type="reset" class="btn" value="重置" style="font-size:15px;"/>
		 	</center>
	 	</div>
 		<div class="alert" style="visibility: hidden;width: 150px;margin-left: 50%;"/>
	</form:form>
	
</body>
</html>
